﻿using System;
using System.Configuration;
using System.Data;
using System.Collections.Generic;
using KPIS.DBM;
using Telerik.Web.UI;
using System.Web.UI.WebControls;

namespace KPIS.GERP.GIMS.MODEL
{
    public static class SystemInfo
    {
        private static string connectionString = ConfigurationSettings.AppSettings["ConnectionString"].ToString();
        private static DataProvider provider = DataProvider.MySQL;

        private static string deleteRecordStatus = "D";
        private static string processRecordStatus = "P";
        private static string approveRecordStatus = "A";
        private static string workRecordStatus = "W";
        private static string cancelRecordStatus = "C";
        private static string activeRecordStatus = "U";
        private static string rejectStatus = "R";
        private static string yesStatus = "Y";
        private static string noStatus = "N";
        private static int currentYear = 2552;
        private static string imagePath = "../Image/ItemPicture/";
        private static string emptyImage = "../Image/ItemPicture/Nopic.jpg";
        private static string insertComplete = "บันทึกข้อมูลเรียบร้อยแล้ว";
        private static string cancelComplete = "ยกเลิกข้อมูลเรียบร้อยแล้ว";
        private static string confirmComplete = "ยืนยันข้อมูลเรียบร้อยแล้ว";
        private static string insertError = "เกิดข้อผิดพลาดในการบันทึกข้อมูล";
        private static string cancelError = "เกิดข้อผิดพลาดในการยกเลิกข้อมูล";
        private static string confirmError = "เกิดข้อผิดพลาดในการยืนยันข้อมูล";
        private static string deleteError = "เกิดข้อผิดพลาดในการลบข้อมูล";
        private static string deleteNull = "โปรดเลือกรายการที่ต้องการลบ";
        private static string restoreError = "เกิดข้อผิดพลาดในการกู้คืนข้อมูล";
        private static string restoreNull = "โปรดเลือกรายการที่ต้องการกู้คืน";
        private static string loginFail = "กรุณาตรวจสอบรหัสผู้ใช้งานหรือรหัสผ่านอีกครั้ง";

        public static string _ConnectionString
        {
            get
            {
                return connectionString;
            }
        }

        public static DataProvider _DataProvider
        {
            get
            {
                return provider;
            }
        }

        public static string _DeleteRecordStatus
        {
            get
            {
                return deleteRecordStatus;
            }
        }

        public static string _ProcessRecordStatus
        {
            get
            {
                return processRecordStatus;
            }
        }

        public static string _ApproveRecordStatus
        {
            get
            {
                return approveRecordStatus;
            }
        }

        public static string _CancelRecordStatus
        {
            get
            {
                return cancelRecordStatus;
            }
        }

        public static string _WorkRecordStatus
        {
            get
            {
                return workRecordStatus;
            }
        }

        public static string _ActiveRecordStatus
        {
            get
            {
                return activeRecordStatus;
            }
        }

        public static string _YesStatus
        {
            get
            {
                return yesStatus;
            }
        }

        public static string _NoStatus
        {
            get
            {
                return noStatus;
            }
        }

        public static int _CurrentYear
        {
            get
            {
                return currentYear;
            }
        }

        public static string _ImagePath
        {
            get
            {
                return imagePath;
            }
        }

        public static string _EmptyImage
        {
            get
            {
                return emptyImage;
            }
        }

        public static string _ConfirmComplete
        {
            get
            {
                return confirmComplete;
            }
        }

        public static string _ConfirmError
        {
            get
            {
                return confirmError;
            }
        }

        public static string _InsertComplete
        {
            get
            {
                return insertComplete;
            }
        }

        public static string _InsertError
        {
            get
            {
                return insertError;
            }
        }

        public static string _DeleteError
        {
            get
            {
                return deleteError;
            }
        }

        public static string _DeleteNull
        {
            get
            {
                return deleteNull;
            }
        }

        public static string _RestoreError
        {
            get
            {
                return restoreError;
            }
        }

        public static string _RestoreNull
        {
            get
            {
                return restoreNull;
            }
        }

        public static string _RejectStatus
        {
            get
            {
                return rejectStatus;
            }
        }

        public static string _CancelComplete
        {
            get
            {
                return cancelComplete;
            }
        }

        public static string _CancelError
        {
            get
            {
                return cancelError;
            }
        }
        public static string _LoginFail
        {
            get
            {
                return loginFail;
            }
        }
    }
}
